It would be nice if jEdit could support Emacs mode strings for mode settings. A simple
addition would be to include mode strings in the default first line globs. For example,
to detect non-executable Perl files which have no extension but whose first line starts
with a shebang or "# -\*- mode: perl; -\*-":
{#\!/\*perl\*,\*mode: \*perl\*}
A more difficult feature would be the support for overrides of the jEdit mode settings
with strings like this:
; -\*- mode: Lisp; tab-width: 4; -\*-
This could make it easier to share files, especially since there is (AFAIK) no way
to specify mode settings per directory tree.
Submitted | engmark - 2012-05-14 13:28:43 | Assigned | |
---|---|---|---|
Priority | 3 | Labels | EditorConfig |
Status | open | Group | |
Resolution | None |
2012-05-14 15:36:03 jarekczek |
"Would be nice", so it is not a bug, but a feature request. I'm moving it to the correct
tracker.
|
---|---|
2012-05-14 15:36:04 jarekczek |
- **summary**: Support Emacs mode strings --> perl mode: recognize mode from emacs
string |
2012-05-14 15:36:21 jarekczek |
- **labels**: 102669 --> |
2012-05-14 15:44:02 engmark |
- **status**: pending-works-for-me --> open-works-for-me |
2012-05-14 15:44:02 engmark |
As already mentioned I work with files which have no shebang line (because they are
not supposed to be executed on their own), and don't have a \*.p\[lm\]{,.tdy} extension
(for unknown reasons), but \*do\* have a mode line. These are not detected as Perl.
|
2012-05-14 15:44:07 engmark |
Test file test (40B) |
2012-05-14 15:50:49 ezust |
in jedit we use = instead of colon (which is used by emacs).
|
2012-05-14 16:25:57 jarekczek |
So most part of Victor's request is already done. General recognition of emacs syntax
file properties would be desirable though. Let's have this entry for that. Here are
the relevant pages from emacs manual:
|
2012-05-14 16:25:57 jarekczek |
- **summary**: perl mode: recognize mode from emacs string --> recognize buffer properties
in emacs format |
2013-04-23 15:58:49 ezust |
I think this should be done in a plugin.
|
2013-12-09 17:07:07.689000 ezust |
- **labels**: --> EditorConfig |